<template>
  <div>
    <el-pagination
      background=""
      @current-change="handleCurrentChange"
      :page-size="10"
      :current-page="currentPage"
      :total="total"
      layout="prev,pager,next,jumper"
    >
    </el-pagination>
  </div>
</template>

<script>
import { Pagination } from "element-ui";

export default {
  components: {
    [Pagination.name]: Pagination,
  },
  props:{
      total:Number
  },
  data() {
      return {
          currentPage:1
      }
  },
  methods: {
      handleCurrentChange(val){
          console.log(val);
          this.$emit('page',val)
      }
  },
};
</script>

<style lang="scss" scoped>
</style>